﻿/*
 * Jonathan
 * Created by: Jonathan Montiverdi
 * Date: 6/14/2012
 * License: http://jonathan.codeplex.com/license
 */
using Jonathan.DataAccess.Sqlite;
using Monti.MVVM;

namespace Jonathan.Data
{
   /// <summary>
   /// The different User Preferences for Jonathan.
   /// </summary>
   [SqliteTable ("Configuration", SqliteTableType.Configuration)]
   public class UserPreferences : ViewModelBase
   {
      private string m_UserName;
      
      /// <summary>
      /// Gets or Sets the application font for Jonathan.
      /// </summary>
      public string ApplicationFont { get; set; }
      
      /// <summary>
      /// Gets or Sets the reader font for Jonathan.
      /// </summary>
      public string ReaderFont { get; set; }
      
      /// <summary>
      /// Gets or Sets the last download time of the main database.
      /// </summary>
      public string MainDbLastDlTime { get; set; }
      
      /// <summary>
      /// Gets or Sets the user name of the learnto.seekdeepwithin.com wiki.
      /// </summary>
      public string WikiUserName
      {
         get { return this.m_UserName; }
         set
         {
            if (this.m_UserName != value)
            {
               this.m_UserName = value;
               this.RaisePropertyChanged ("WikiUserName");
            }
         }
      }
   }
}
